import request from '@/utils/request'

export function listcaskCategory(query) {
  return request({
    url: '/caskCategory/list',
    method: 'get',
    params: query
  })
}

export function createcaskCategory(data) {
  return request({
    url: '/caskCategory/create',
    method: 'post',
    data
  })
}

export function readcaskCategory(data) {
  return request({
    url: '/caskCategory/get/' + data.caskId,
    method: 'get'
  })
}

export function updatecaskCategory(data) {
  return request({
    url: '/caskCategory/update',
    method: 'post',
    data
  })
}

export function deletecaskCategory(data) {
  return request({
    url: '/caskCategory/delete/' + data.caskId,
    method: 'delete'
  })
}

export function setStatus(data) {
  return request({
    url: '/caskCategory/setStatus',
    method: 'post',
    data
  })
}
